<!DOCTYPE html>
<html>
<head>
    <title>证件表</title>
		<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
            <!--<i-col span="4">-->
                <!--<i-input v-model="q.name" @on-enter="query" placeholder="名称"/>-->
            <!--</i-col>-->
            <i-col span="4">
                <i-select v-model="q.studentId" filterable label-in-value placeholder="学生">
                    <i-option v-for="item in studentList" :value="item.userId"
                              :key="item.userId">{{item.username}}
                    </i-option>
                </i-select>
            </i-col>
            <i-button class="btn btn-primary" @click="query">查询</i-button>
            <div style="display: block;float: right">
                <#if shiro.hasPermission("lanling:certificate:save")>
                <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
                </#if>
                <#if shiro.hasPermission("lanling:certificate:update")>
                <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
                </#if>
                <#if shiro.hasPermission("lanling:certificate:delete")>
                <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
                </#if>
            </div>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <i-form ref="formValidate" :model="certificate" :rules="ruleValidate" :label-width="80" class="form-horizontal">
                    <Form-item label="学员姓名" prop="userName">
                        <i-input v-model="certificate.userName" placeholder="学员姓名"/>
                    </Form-item>
                    <Form-item label="学员id" prop="studentId">
                        <i-input v-model="certificate.studentId" placeholder="学员id"/>
                    </Form-item>
                    <Form-item label="姓名拼音" prop="studentPname">
                        <i-input v-model="certificate.studentPname" placeholder="姓名拼音"/>
                    </Form-item>
                    <Form-item label="证件号码" prop="certificateNumber">
                        <i-input v-model="certificate.certificateNumber" placeholder="证件号码"/>
                    </Form-item>
                    <Form-item label="证件有效时间" prop="certificateEndDate">
                        <i-input v-model="certificate.certificateEndDate" placeholder="证件有效时间"/>
                    </Form-item>
                    <Form-item label="证件名称" prop="certificateName">
                        <i-input v-model="certificate.certificateName" placeholder="证件名称"/>
                    </Form-item>
                    <Form-item label="复审时间" prop="reviewDate">
                        <i-input v-model="certificate.reviewDate" placeholder="复审时间"/>
                    </Form-item>
                    <Form-item label="学校id" prop="schoolId">
                        <i-input v-model="certificate.schoolId" placeholder="学校id"/>
                    </Form-item>
                    <Form-item label="创建时间" prop="createDate">
                        <i-input v-model="certificate.createDate" placeholder="创建时间"/>
                    </Form-item>
                    <Form-item label="修改时间" prop="lastModifyDate">
                        <i-input v-model="certificate.lastModifyDate" placeholder="修改时间"/>
                    </Form-item>
            <Form-item>
                <i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button>
                <i-button type="warning" @click="reload" style="margin-left: 8px"/>返回</i-button>
            </Form-item>
        </i-form>
    </div>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/lanling/certificate.js?_${.now?long}"></script>
</body>
</html>